package com.demotest.service.impl;

import com.demotest.mapper.GirlsMapper;
import com.demotest.model.Girls;
import com.demotest.service.GirlsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liuzh on 2018-04-05.
 */
@Service
public class GirlsServiceImpl implements GirlsService {
    @Autowired
    GirlsMapper girlsMapper;

    @Override
    public List<Girls> showAll() {
        return girlsMapper.showAll();
    }

    @Override
    public int deleteById(Integer id) {
        return girlsMapper.deleteById(id);
    }

    @Override
    public int insert(Girls record) {
        return girlsMapper.insert(record);
    }

    @Override
    public int insertSelective(Girls record) {
        return girlsMapper.insertSelective(record);
    }

    @Override
    public Girls selectById(Integer id) {
        return girlsMapper.selectById(id);
    }

    @Override
    public int updateByIdSelective(Girls record) {
        return girlsMapper.updateByIdSelective(record);
    }

    @Override
    public int updateById(Girls record) {
        return girlsMapper.updateById(record);
    }
}
